//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['AHL Pacific Division Semifinals: Coachella Valley Firebirds vs. Calgary Wranglers - Home Game 1, Series Game 3','Acrisure Arena','Thousand Palms, CA','Wednesday','5/8/2024','7:00 PM','6353903','AHL-Pacific-Division-Semifinals--Coachella-Valley-Firebirds-vs--Calgary-Wranglers---Home-Game-1--Series-Game-3-5-8-2024'],['AHL Pacific Division Semifinals: Coachella Valley Firebirds vs. Calgary Wrangler - Home Game 2, Series Game 4','Acrisure Arena','Thousand Palms, CA','Friday','5/10/2024','7:00 PM','6353904','AHL-Pacific-Division-Semifinals--Coachella-Valley-Firebirds-vs--Calgary-Wrangler---Home-Game-2--Series-Game-4-5-10-2024'],['Blues Traveler','Spotlight 29 Casino','Coachella, CA','Friday','5/10/2024','8:00 PM','6200416','Blues-Traveler-5-10-2024'],['Amanda Miguel','Spotlight 29 Casino','Coachella, CA','Saturday','5/11/2024','8:00 PM','6324356','Amanda-Miguel-5-11-2024'],['AHL Pacific Division Semifinals: Coachella Valley Firebirds vs. Calgary Wrangler - Home Game 3, Series Game 5 (If Necessary)','Acrisure Arena','Thousand Palms, CA','Sunday','5/12/2024','3:00 PM','6353907','AHL-Pacific-Division-Semifinals--Coachella-Valley-Firebirds-vs--Calgary-Wrangler---Home-Game-3--Series-Game-5--If-Necessary--5-12-2024'],['Bee Gees Gold - A Tribute to The Bee Gees','Spotlight 29 Casino','Coachella, CA','Friday','5/31/2024','7:00 PM','6249270','Bee-Gees-Gold---A-Tribute-to-The-Bee-Gees-5-31-2024'],['Bill Maher','Spotlight 29 Casino','Coachella, CA','Saturday','6/1/2024','8:00 PM','6205180','Bill-Maher-6-1-2024'],['Selena The Show - Tribute To Selena','Spotlight 29 Casino','Coachella, CA','Friday','6/14/2024','8:00 PM','6301597','Selena-The-Show---Tribute-To-Selena-6-14-2024'],['Voyage - A Journey Tribute','Spotlight 29 Casino','Coachella, CA','Friday','6/21/2024','8:00 PM','6248194','Voyage---A-Journey-Tribute-6-21-2024'],['Todd Rundgren','Spotlight 29 Casino','Coachella, CA','Saturday','6/22/2024','8:00 PM','6215230','Todd-Rundgren-6-22-2024']],'"Coachella"','https://www.ticketnetwork.com');